package service.cities;

/**
 * Created with IntelliJ IDEA.
 * User: Claudio "Dna" Bonesana
 * Date: 19.04.13
 * Time: 21:26
 */
public class CityByIp extends City {

    private String ip;

    public CityByIp(String ip) {
        super(ip);
        this.ip = ip;
    }

    public String getIp() {
        return ip;
    }

    @Override
    public void setName(String name) {
        ip = name;
    }

    @Override
    public String getName() {
        return ip;
    }

    @Override
    public String getConnectionData(){
        return "" + ip;
    }

}
